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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.parent {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 10px;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(88, 28, 135, 0.15) 0%, rgba(10, 10, 10, 1) 70%);
    z-index: -1;
    pointer-events: none;
}

.container-calc {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.calculator-card {
    background: rgba(17, 17, 17, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e5;
}

.searchable-select {
    position: relative;
    width: 100%;
}

.search-input,
.select-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px;
}

.search-input:focus,
.select-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(30, 30, 30, 1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.select-dropdown.bn-calc-show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.bn-calc-dropdown-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.bn-calc-dropdown-item:hover,
.bn-calc-dropdown-item:active {
    background: rgba(139, 92, 246, 0.2);
}

.bn-calc-dropdown-item.bn-calc-selected {
    background: rgba(139, 92, 246, 0.3);
    font-weight: 600;
}

.bn-calc-dropdown-empty {
    padding: 14px 16px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.advanced-toggle {
    margin: 25px 0;
}

.toggle-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.toggle-btn:hover,
.toggle-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.toggle-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 15px;
}

.advanced-options {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.advanced-options.bn-calc-show {
    max-height: 3000px;
    opacity: 1;
    margin-top: 20px;
}

.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    margin-top: 30px;
}

.calculate-btn:hover,
.calculate-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover .btn-glow {
    left: 100%;
}

.initial-message {
    text-align: center;
    padding: 40px 20px;
}

.message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.initial-message h2 {
    font-size: 26px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.initial-message p {
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
}

.info-item {
    background: rgba(30, 30, 30, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.info-label.excellent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.info-label.good {
    background: rgba(132, 204, 22, 0.2);
    color: #84cc16;
}

.info-label.fair {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.info-label.poor {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.info-desc {
    font-size: 13px;
    color: #a0a0a0;
}

.laptop-specs-tip {
    background: rgba(30, 30, 30, 0.6);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
    margin-top: 25px;
    text-align: left;
}

.laptop-specs-tip h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #8b5cf6;
}

.laptop-specs-tip p {
    font-size: 13px;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.laptop-specs-tip p:last-child {
    margin-bottom: 0;
}

.results-section {
    padding: 20px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    font-size: 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reset-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.reset-btn:hover,
.reset-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bottleneck-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bottleneck-card {
    background: rgba(30, 30, 30, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e5e5;
}

.percentage-display {
    text-align: center;
    margin: 20px 0;
}

.percentage {
    font-size: 42px;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    transition: width 0.8s ease, background 0.3s ease;
    border-radius: 6px;
}

.usage-info {
    text-align: center;
    font-size: 14px;
    color: #a0a0a0;
}

.usage-info span {
    font-weight: 700;
    color: #ffffff;
}

.performance-rating {
    text-align: center;
    padding: 25px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    margin-bottom: 30px;
}

.bn-calc-rating-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.performance-rating p {
    font-size: 15px;
    color: #c0c0c0;
}

.detailed-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.result-panel {
    background: rgba(30, 30, 30, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-panel h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e5e5e5;
}

.bn-calc-config-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 5px;
}

.bn-calc-config-item:last-child {
    border-bottom: none;
}

.bn-calc-config-label {
    color: #a0a0a0;
    font-weight: 500;
}

.bn-calc-config-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.bn-calc-fps-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.bn-calc-fps-item:last-child {
    margin-bottom: 0;
}

.bn-calc-fps-target {
    border: 2px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.bn-calc-fps-label {
    color: #a0a0a0;
    font-weight: 500;
}

.bn-calc-fps-value {
    color: #ffffff;
    font-weight: 700;
}

.bn-calc-recommendation-item {
    background: rgba(20, 20, 20, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid transparent;
}

.bn-calc-recommendation-item:last-child {
    margin-bottom: 0;
}

.bn-calc-recommendation-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bn-calc-recommendation-icon {
    font-size: 20px;
}

.bn-calc-recommendation-component {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    min-width: 100px;
}

.bn-calc-recommendation-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.bn-calc-priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.bn-calc-priority-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.bn-calc-priority-low {
    background: rgba(132, 204, 22, 0.2);
    color: #84cc16;
}

.bn-calc-priority-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.bn-calc-recommendation-message {
    font-size: 13px;
    color: #c0c0c0;
    line-height: 1.6;
}

.bn-calc-upgrade-item {
    background: rgba(20, 20, 20, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bn-calc-upgrade-item:last-child {
    margin-bottom: 0;
}

.bn-calc-upgrade-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bn-calc-upgrade-icon {
    font-size: 20px;
}

.bn-calc-upgrade-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.bn-calc-upgrade-description {
    font-size: 13px;
    color: #c0c0c0;
    margin-bottom: 8px;
    line-height: 1.6;
}

.bn-calc-upgrade-score {
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 600;
}

.bn-calc-resolution-item {
    background: rgba(20, 20, 20, 0.5);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.bn-calc-resolution-item:last-child {
    margin-bottom: 0;
}

.bn-calc-resolution-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
}

.bn-calc-resolution-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.bn-calc-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bn-calc-stat-label {
    font-size: 11px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bn-calc-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.bn-calc-recommended-badge {
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.bn-calc-cooling-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.bn-calc-cooling-stat:last-of-type {
    border-bottom: none;
}

.bn-calc-cooling-description {
    margin-top: 15px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #c0c0c0;
    line-height: 1.6;
}

@media (min-width: 480px) {
    .parent {
        padding: 20px;
    }
    
    .calculator-card {
        padding: 30px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .initial-message h2 {
        font-size: 30px;
    }
    
    .initial-message p {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .container-calc {
        padding: 30px;
    }
    
    .calculator-card {
        padding: 40px;
    }
    
    .input-group label {
        font-size: 15px;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bottleneck-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-header {
        flex-wrap: nowrap;
    }
    
    .bn-calc-config-item {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .detailed-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .calculator-card {
        padding: 50px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

@media (hover: hover) and (pointer: fine) {
    .bn-calc-dropdown-item:hover {
        background: rgba(139, 92, 246, 0.2);
    }
    
    .toggle-btn:hover {
        transform: translateY(-2px);
    }
    
    .calculate-btn:hover {
        transform: translateY(-3px);
    }
    
    .reset-btn:hover {
        transform: translateY(-2px);
    }
}