/* Market Warning Styles */
.market-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 1rem;
    font-weight: 600;
}

.warning-content p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive warning */
@media (max-width: 768px) {
    .market-warning {
        padding: 15px;
        gap: 12px;
    }
    
    .warning-icon {
        font-size: 1.25rem;
    }
    
    .warning-content h4 {
        font-size: 0.9rem;
    }
    
    .warning-content p {
        font-size: 0.8rem;
    }
}

/* Calculation Breakdown Styles */
.calculation-breakdown {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.calculation-breakdown h4 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.breakdown-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.breakdown-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

.breakdown-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

/* Responsive adjustments for breakdown */
@media (max-width: 768px) {
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .calculation-breakdown {
        padding: 20px;
    }
    
    .breakdown-item {
        padding: 10px 12px;
    }
}
.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

.form-input[readonly] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.form-input[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #374151;
}

/* Manufacturer and Model Selection */
#manufacturer, #asic-model {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    appearance: none;
}

#manufacturer:focus, #asic-model:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ASIC Model Options Styling */
#asic-model option {
    padding: 8px 12px;
    font-size: 0.875rem;
}

#asic-model option:disabled {
    color: #9ca3af;
    font-style: italic;
}

/* Manual Override Toggle */
#manual-override:checked ~ .form-help {
    color: #059669;
}

/* Miner Info Display */
.miner-info-display {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.miner-specs-summary h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spec-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

.spec-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-help {
        font-size: 0.8rem;
    }
    
    #manufacturer, #asic-model {
        background-size: 14px;
        padding-right: 28px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .miner-info-display {
        padding: 15px;
    }
}

/* Calculator Hero Section */
.calculator-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calculator-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.calculator-hero .container {
    position: relative;
    z-index: 2;
}

.calculator-icon-large {
    font-size: 80px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.calculator-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-hero .subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

/* Enhanced Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: #f8fafc;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.calculator-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f79009;
    position: relative;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f79009;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-input {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #f79009;
    background: white;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.1);
    transform: translateY(-2px);
}

.form-select {
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #f79009;
    background: white;
    box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.1);
}

.calculator-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #f79009, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 144, 9, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 144, 9, 0.4);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Enhanced Results Section */
.calculator-results {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.calculator-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.calculator-results h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #f79009, #d97706);
    border-radius: 2px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f79009, #d97706);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.result-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* ROI Summary Cards */
.roi-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.roi-card {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.roi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.roi-card.primary::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.roi-card.success::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.roi-card.info::before {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.roi-card.warning::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.roi-card.primary {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}

.roi-card.success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
}

.roi-card.info {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    border: 1px solid #99f6e4;
}

.roi-card.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}

.roi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.roi-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roi-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.roi-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Enhanced Charts */
.chart-container {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.chart-container h4,
.chart-container h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chart-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(203,213,225,0.3)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23chart-grid)"/></svg>');
}

.chart-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Risk Analysis Bars */
.risk-factors {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.risk-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.risk-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 4px;
    transition: width 0.8s ease, background 0.3s ease;
    position: relative;
}

/* Risk-based colors - Red gradient (higher risk = more red) */
.risk-fill.risk-low {
    background: linear-gradient(135deg, #10b981, #059669); /* Green for low risk */
}

.risk-fill.risk-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Orange for medium risk */
}

.risk-fill.risk-high {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Red for high risk */
}

/* Performance-based colors - Green gradient (higher performance = more green) */
.risk-fill.performance-low {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Red for low performance */
}

.risk-fill.performance-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Orange for medium performance */
}

.risk-fill.performance-high {
    background: linear-gradient(135deg, #10b981, #059669); /* Green for high performance */
}

.risk-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Comparison Tables */
.comparison-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.comparison-table tr:hover {
    background: #f8fafc;
}

.score-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f79009, #d97706);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

/* Investment Tips Section */
.investment-tips-section {
    padding: 80px 0;
    background: #f8fafc;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.tip-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.tip-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.tip-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tip-savings {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Global Rates Section */
.global-rates-section {
    padding: 80px 0;
    background: white;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.rate-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.rate-card.excellent {
    border-left: 4px solid #10b981;
}

.rate-card.good {
    border-left: 4px solid #3b82f6;
}

.rate-card.moderate {
    border-left: 4px solid #f59e0b;
}

.rate-card.expensive {
    border-left: 4px solid #ef4444;
}

.rate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.rate-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.rate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.country {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.rate {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator-form {
        position: static;
    }
}

@media (max-width: 768px) {
    .calculator-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roi-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: #f8fafc;
}

.comparison-controls {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.comparison-controls h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

.miner-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.miner-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.miner-checkbox:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.miner-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f79009;
}

.miner-checkbox label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.comparison-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Tabs */
.calculator-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: linear-gradient(135deg, #f79009, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(247, 144, 9, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f8fafc;
    color: #374151;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Network Status Section */
.network-status-section {
    padding: 60px 0;
    background: white;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.status-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.status-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.status-change {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.status-change.positive {
    background: #dcfce7;
    color: #166534;
}

.status-change.negative {
    background: #fee2e2;
    color: #991b1b;
}

/* Analysis Legend Styles */
.analysis-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.8rem;
}

.legend-section h6 {
    margin: 0 0 10px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.legend-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Risk colors - Red gradient (higher risk = more red) */
.legend-color.risk-low {
    background: linear-gradient(135deg, #10b981, #059669);
}

.legend-color.risk-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legend-color.risk-high {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Performance colors - Green gradient (higher performance = more green) */
.legend-color.performance-low {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.legend-color.performance-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legend-color.performance-high {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Analysis Sections */
.analysis-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.analysis-section h6 {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 6px;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.risk-label {
    min-width: 120px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.risk-value {
    min-width: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
    color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
    .analysis-legend {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analysis-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legend-items {
        justify-content: center;
    }
}

.status-change.neutral {
    background: #f3f4f6;
    color: #374151;
}

/* Chart Styles */
.chart-wrapper {
    position: relative;
    height: 200px;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.chart-info {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-top: 10px;
}

.chart-info p {
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-summary {
        grid-template-columns: 1fr;
    }
    
    .calculator-form {
        padding: 24px;
    }
    
    .calculator-results {
        padding: 24px;
    }
}
