/* VDURA Storage Cost Calculator Styles */

:root {
    /* Color Palette */
    --primary-bg: #05070d;
    --secondary-bg: #0b0e24;
    --card-bg: #141829;
    --accent-gold: #e79f23;
    --accent-gold-light: #f5b649;
    --accent-cyan: #46b0ff;
    --accent-purple: #a855f7;
    --accent-purple-light: #c084fc;
    --accent-blue: #1fd9fe;
    --accent-blue-light: #5fe5ff;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --success-green: #10b981;
    --error-red: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
}

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

/* Header */
header {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-branding {
    position: absolute;
    left: 0;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-branding .logo {
    height: 32px;
}

.header-branding .tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin: 0;
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content .subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-link {
    position: absolute;
    right: 0;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

.header-link a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-link a:hover {
    background: rgba(231, 159, 35, 0.1);
    border-color: var(--accent-gold-light);
    color: var(--accent-gold-light);
}

.header-link span {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        max-width: 100%;
    }

    .header-branding {
        position: static;
        margin-bottom: 0.5rem;
    }

    .header-branding .logo {
        height: 24px;
    }

    .header-content {
        text-align: center;
    }

    .header-content h1 {
        font-size: 1.2rem;
    }

    .header-content .subtitle {
        font-size: 0.75rem;
    }
}

/* Input Panel */
.input-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.input-panel .panel-header {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .input-panel {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

/* Pricing Section */
.pricing-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.pricing-content {
    display: grid;
    grid-template-columns: 1fr 0.84fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .pricing-content {
        grid-template-columns: 1fr;
    }

    .pricing-text {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .pricing-text {
        padding: 0.5rem;
    }

    .pricing-text h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .pricing-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .pricing-table {
        font-size: 0.75rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.4rem;
    }

    .pricing-controls label {
        font-size: 0.75rem;
    }

    .slider-value {
        font-size: 0.85rem;
    }

    .hint {
        font-size: 0.65rem;
    }
}

.pricing-text {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.pricing-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.pricing-text p:last-child {
    margin-bottom: 0;
}

.pricing-middle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}

.pricing-table-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 7, 13, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.pricing-table th {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--primary-bg);
    padding: 0.3rem 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

.pricing-table td {
    padding: 0.25rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .quarter-cell {
    color: var(--accent-gold);
    font-weight: 700;
}

.pricing-table .ssd-price {
    color: var(--accent-cyan);
}

.pricing-table .hdd-price {
    color: var(--success-green);
}

.pricing-table .ratio-cell {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(5, 7, 13, 0.5);
    border-radius: 8px;
}

.pricing-controls {
    text-align: center;
    padding: 0.3rem 0.5rem;
    background: rgba(231, 159, 35, 0.1);
    border-radius: 8px;
}

.pricing-controls label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pricing-controls input[type="range"] {
    width: 80%;
}

.pricing-controls .slider-value {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.pricing-controls .hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.6rem;
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

/* Results Grid - 4 columns: Quarter Label | VDURA | WEKA | Competitor V */
.results-grid {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.grid-header-corner {
    /* Empty corner cell */
}

.grid-header {
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.2) 0%, rgba(20, 24, 41, 0.8) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.grid-header:has(.competitor-selector) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(20, 24, 41, 0.8) 100%);
    border-color: var(--accent-purple);
}

.grid-header:has(#competitor-v-type) {
    background: linear-gradient(135deg, rgba(49, 95, 255, 0.2) 0%, rgba(20, 24, 41, 0.8) 100%);
    border-color: var(--accent-blue);
}

.grid-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ssd-percentage-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-gold-light);
    margin-left: 0.5rem;
}

.competitor-selector {
    margin-bottom: 1rem;
}

.competitor-selector select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--secondary-bg);
    border: 2px solid var(--accent-purple);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.competitor-selector select:hover {
    border-color: var(--accent-purple-light);
}

.competitor-selector select:focus {
    outline: none;
    border-color: var(--accent-purple-light);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

#competitor-v-type {
    border-color: var(--accent-blue);
}

#competitor-v-type:hover {
    border-color: var(--accent-blue-light);
}

#competitor-v-type:focus {
    border-color: var(--accent-blue-light);
    box-shadow: 0 0 0 3px rgba(31, 217, 254, 0.3);
}

.grid-header .architecture-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grid-header .architecture-badge.all-flash {
    background: var(--accent-purple);
}

#competitor-v-architecture-badge {
    background: var(--accent-blue);
}

.grid-row-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.15) 0%, rgba(20, 24, 41, 0.9) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.grid-row-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.grid-row-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.grid-row-header .period-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.grid-row-header.period-high .period-label {
    color: rgba(239, 68, 68, 0.9);
}

.grid-row-header.period-low .period-label {
    color: rgba(16, 185, 129, 0.9);
}

/* Q2'26 - High pricing period (red/warning theme) */
.grid-row-header.period-high {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(20, 24, 41, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.grid-row-header.period-high h3 {
    color: #ef4444;
}

.grid-row-header.period-high p {
    color: rgba(239, 68, 68, 0.8);
}

/* Q2'25 - Low/baseline pricing period (green theme) */
.grid-row-header.period-low {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(20, 24, 41, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.grid-row-header.period-low h3 {
    color: #10b981;
}

.grid-row-header.period-low p {
    color: rgba(16, 185, 129, 0.8);
}

.price-display {
    margin-top: 1rem;
    width: 100%;
}

.price-display label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-slider {
    margin-top: 1rem;
    width: 100%;
}

.price-slider label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.price-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--success-green) 0%, var(--accent-gold) 50%, var(--error-red) 100%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 159, 35, 0.5);
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gold);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 159, 35, 0.5);
}

.slider-price {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 0.5rem;
}

.price-row .slider-price {
    margin-top: 0;
    font-size: 0.95rem;
    text-align: right;
}

/* Savings Summary - Side by Side */
.savings-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.savings-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.savings-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-align: center;
    padding: 1rem 0.5rem;
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.2) 0%, rgba(5, 7, 13, 0.9) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-header-corner,
    .grid-header {
        display: none;
    }

    .grid-row-header {
        grid-column: 1;
    }

    .savings-row {
        grid-template-columns: 1fr;
    }

    .savings-header {
        writing-mode: horizontal-tb;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .results-section {
        padding: 0;
    }

    .results-grid {
        gap: 1rem;
    }

    .grid-row-header h3 {
        font-size: 1rem;
    }

    .grid-row-header p {
        font-size: 0.75rem;
    }

    .ssd-badges-container {
        flex-direction: column;
        gap: 0.25rem;
    }

    .ssd-price-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
    }

    .result-card {
        padding: 0.75rem;
    }

    .total-cost {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .total-cost .label {
        font-size: 0.7rem;
    }

    .total-cost .value {
        font-size: 1.5rem;
    }

    .system-details {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .system-details .detail-row {
        gap: 0.5rem;
    }

    .system-details .detail-label {
        font-size: 0.7rem;
    }

    .system-details .detail-value {
        font-size: 0.75rem;
    }

    .chart-container {
        padding: 1rem;
        margin-top: 1rem;
    }

    .chart-container h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

.panel-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--accent-gold);
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-section .panel-header {
    margin-bottom: 0.4rem;
}

.pricing-section .panel-header h2 {
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--secondary-bg);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(231, 159, 35, 0.15);
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold-light);
    box-shadow: 0 0 0 3px rgba(231, 159, 35, 0.3);
}

.form-group select {
    cursor: pointer;
}

/* Range Sliders */
.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-cyan) 100%);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 159, 35, 0.5);
    transition: all 0.3s ease;
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-gold-light);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 159, 35, 0.5);
    transition: all 0.3s ease;
}

.slider-value {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 8px 24px rgba(231, 159, 35, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(231, 159, 35, 0.5);
}

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

/* Result Cards */
.result-card {
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.1) 0%, rgba(20, 24, 41, 0.8) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(231, 159, 35, 0.2);
}

.vdura-card {
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.2) 0%, rgba(245, 182, 73, 0.1) 100%);
    border-color: var(--accent-gold);
}

.competitor-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(20, 24, 41, 0.8) 100%);
    border-color: var(--accent-purple);
}

.competitor-card:hover {
    border-color: var(--accent-purple-light);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.result-card:has(#compv-q2-total),
.result-card:has(#compv-q2-25-total) {
    background: linear-gradient(135deg, rgba(31, 217, 254, 0.15) 0%, rgba(20, 24, 41, 0.8) 100%);
    border-color: var(--accent-blue);
}

.result-card:has(#compv-q2-total):hover,
.result-card:has(#compv-q2-25-total):hover {
    border-color: var(--accent-blue-light);
    box-shadow: 0 8px 24px rgba(31, 217, 254, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.architecture-badge {
    padding: 0.4rem 0.8rem;
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.architecture-badge.all-flash {
    background: var(--accent-cyan);
}

/* Cost Summary */
.cost-summary {
    margin-bottom: 1rem;
}

.ssd-badges-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.ssd-price-badge {
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ssd-price-badge strong {
    font-weight: 700;
    color: var(--text-primary);
}

.ssd-price-badge.vdura-badge strong {
    color: var(--accent-gold-light);
}

.ssd-price-badge.competitor-badge strong {
    color: var(--accent-purple-light);
}

.ssd-price-badge.competitor-v-badge strong {
    color: var(--accent-blue-light);
}

.total-cost {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: rgba(231, 159, 35, 0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.total-cost .label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-cost .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.competitor-card .total-cost .value {
    color: var(--accent-purple-light);
}

.result-card:has(#compv-q2-total) .total-cost .value,
.result-card:has(#compv-q2-25-total) .total-cost .value {
    color: var(--accent-blue-light);
}

.cost-breakdown {
    padding: 0 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span:first-child {
    color: var(--text-muted);
}

.breakdown-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* System Details */
.system-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1rem;
    background: rgba(5, 7, 13, 0.3);
    border-radius: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.system-details .detail-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: baseline;
}

.system-details .detail-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.system-details .detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
}

/* Savings Card */
.savings-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 7, 13, 0.9) 100%);
    border: 2px solid var(--success-green);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.savings-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-green);
    margin-bottom: 0.5rem;
}

.savings-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Chart Container */
.chart-container {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.chart-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

#cost-chart {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
}

.chart-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: right;
}

.chart-bars-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-bar-wrapper {
    background: rgba(5, 7, 13, 0.5);
    border-radius: 8px;
    overflow: hidden;
    height: 50px;
    position: relative;
    border: 1px solid var(--border-color);
}

.chart-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    transition: width 0.5s ease;
    position: relative;
}

.vdura-bar {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
}

.weka-bar {
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
}

.compv-bar {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
}

.chart-bar-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-bg);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .chart-row {
        grid-template-columns: 50px 1fr;
    }

    .chart-label {
        font-size: 0.75rem;
    }

    .chart-bar-wrapper {
        height: 35px;
    }

    .chart-bar-text {
        font-size: 0.65rem;
    }

    .panel-header h2 {
        font-size: 1rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card, .savings-card {
    animation: slideIn 0.5s ease-out;
}

/* Guidance Section */
.guidance-section {
    background: rgba(70, 176, 255, 0.1);
    border: 1px solid rgba(70, 176, 255, 0.3);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.guidance-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.guidance-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.guidance-content strong {
    color: var(--accent-cyan);
}

/* Methodology Note */
.methodology-note {
    background: rgba(231, 159, 35, 0.1);
    border: 1px solid rgba(231, 159, 35, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-content {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
}

.note-content strong {
    color: var(--accent-gold);
}

/* BOM Modal */
.bom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.3s;
}

.bom-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bom-modal-content {
    background: rgba(21, 27, 46, 0.98);
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    width: 90%;
    max-width: 1100px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(231, 159, 35, 0.2) 0%, rgba(20, 24, 41, 0.9) 100%);
}

.bom-modal-header h3 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.bom-modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.bom-modal-close:hover {
    color: var(--accent-gold);
}

.bom-modal-body {
    padding: 1rem;
    overflow-y: auto;
}

.bom-content-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.bom-table-wrapper {
    flex: 1;
    min-width: 0;
}

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

.bom-table th {
    background: rgba(231, 159, 35, 0.2);
    color: var(--text-primary);
    padding: 0.35rem 0.4rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
}

.bom-table th:nth-child(2),
.bom-table th:nth-child(3),
.bom-table th:nth-child(4) {
    text-align: right;
}

.bom-table td {
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.bom-table td:nth-child(2),
.bom-table td:nth-child(3),
.bom-table td:nth-child(4) {
    text-align: right;
    font-weight: 600;
}

.bom-table tbody tr:hover {
    background: rgba(231, 159, 35, 0.05);
}

.bom-table tfoot td {
    padding: 0.45rem 0.4rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-gold);
    border-top: 2px solid var(--accent-gold);
    border-bottom: none;
}

.bom-section-header {
    background: rgba(70, 176, 255, 0.1);
    font-weight: 700;
    color: var(--accent-cyan);
}

.bom-note {
    margin-top: 1rem;
    padding: 0.7rem;
    background: rgba(70, 176, 255, 0.1);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.4;
}

.bom-note strong {
    color: var(--accent-cyan);
}

.bom-chart-container {
    flex: 0 0 380px;
    padding: 1rem;
    background: rgba(231, 159, 35, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(231, 159, 35, 0.3);
    display: flex;
    flex-direction: column;
}

.bom-chart-container h4 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-align: center;
}

.bom-chart-container canvas {
    max-height: 350px;
}

/* BOM Vendor Themes */
.bom-weka .bom-modal-content {
    border-color: var(--accent-purple);
}

.bom-weka .bom-modal-header {
    border-bottom-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(20, 24, 41, 0.9) 100%);
}

.bom-weka .bom-modal-header h3 {
    color: var(--accent-purple);
}

.bom-weka .bom-modal-close:hover {
    color: var(--accent-purple);
}

.bom-weka .bom-table th {
    background: rgba(168, 85, 247, 0.2);
    border-bottom-color: var(--accent-purple);
}

.bom-weka .bom-table tfoot td {
    color: var(--accent-purple);
    border-top-color: var(--accent-purple);
}

.bom-weka .bom-section-header {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple-light);
}

.bom-weka .bom-chart-container {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.bom-weka .bom-chart-container h4 {
    color: var(--accent-purple);
}

.bom-weka .bom-note {
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--accent-purple);
}

.bom-weka .bom-note strong {
    color: var(--accent-purple);
}

.bom-compv .bom-modal-content {
    border-color: var(--accent-blue);
}

.bom-compv .bom-modal-header {
    border-bottom-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(31, 217, 254, 0.2) 0%, rgba(20, 24, 41, 0.9) 100%);
}

.bom-compv .bom-modal-header h3 {
    color: var(--accent-blue);
}

.bom-compv .bom-modal-close:hover {
    color: var(--accent-blue);
}

.bom-compv .bom-table th {
    background: rgba(31, 217, 254, 0.2);
    border-bottom-color: var(--accent-blue);
}

.bom-compv .bom-table tfoot td {
    color: var(--accent-blue);
    border-top-color: var(--accent-blue);
}

.bom-compv .bom-section-header {
    background: rgba(31, 217, 254, 0.1);
    color: var(--accent-blue-light);
}

.bom-compv .bom-chart-container {
    border-color: rgba(31, 217, 254, 0.3);
    background: rgba(31, 217, 254, 0.05);
}

.bom-compv .bom-chart-container h4 {
    color: var(--accent-blue);
}

.bom-compv .bom-note {
    background: rgba(31, 217, 254, 0.1);
    border-left-color: var(--accent-blue);
}

.bom-compv .bom-note strong {
    color: var(--accent-blue);
}

.clickable-cost {
    cursor: pointer;
    transition: all 0.2s;
}

.clickable-cost:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* Why This Matters Section */
.why-matters-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(70, 176, 255, 0.05);
    border: 1px solid rgba(70, 176, 255, 0.2);
    border-radius: 12px;
}

.why-matters-section h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.why-matters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.why-matters-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-matters-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.why-matters-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 159, 64, 0.05);
    border: 1px solid rgba(255, 159, 64, 0.3);
    border-radius: 8px;
}

.disclaimer-section h3 {
    color: rgba(255, 159, 64, 1);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.disclaimer-content {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.8rem;
}

.disclaimer-content p {
    margin-bottom: 0.75rem;
}

.disclaimer-content h4 {
    color: var(--accent-gold);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disclaimer-content ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.disclaimer-content li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.disclaimer-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
