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

body {
    font-family: 'D-DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.logout-btn {
    position: absolute;
    right: 20px;
    top: 0;
    padding: 8px 16px;
    background: #1a1a1a;
    color: #808080;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #333333;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #666666;
}

.spacex-logo {
    font-size: 3em;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    color: #a0a0a0;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.portfolio-brands {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.brand-label {
    font-size: 0.7em;
    color: #606060;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-2px);
}

.brand-name {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-desc {
    font-size: 0.7em;
    color: #808080;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-divider {
    width: 1px;
    height: 30px;
    background: #333333;
}

.portfolio-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    opacity: 0.3;
}

.investment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    margin-bottom: 80px;
    background: #1a1a1a;
}

.stat-card {
    background: #000000;
    padding: 40px;
    text-align: center;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-card:hover {
    background: #0a0a0a;
}

.stat-card.highlight {
    background: #000000;
}

.stat-card.gain {
    background: #000000;
}

.stat-label {
    font-size: 0.85em;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-value {
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.click-hint {
    font-size: 0.7em;
    color: #666666;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.stat-card.highlight:hover .click-hint {
    opacity: 1;
    color: #808080;
}

h2 {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-align: center;
}

.valuations,
.projections {
    margin-bottom: 80px;
}

.valuation-grid,
.projection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2px;
    background: #1a1a1a;
}

.valuation-card {
    padding: 50px;
    text-align: center;
    color: white;
    background: #000000;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.valuation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.valuation-card:hover::after {
    opacity: 1;
}

.valuation-card:hover {
    background: #0a0a0a;
}

.valuation-card h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #808080;
    font-weight: 600;
}

.company-value {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.company-detail {
    font-size: 0.85em;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projection-card {
    background: #000000;
    padding: 50px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projection-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projection-card:hover::after {
    opacity: 1;
}

.projection-card:hover {
    background: #0a0a0a;
}

.projection-year {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.projection-value {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.projection-detail {
    font-size: 0.85em;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.actions {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 40px;
    font-size: 0.95em;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: #ffffff;
    color: #000000;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: transparent;
    color: #ffffff;
}

footer {
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid #1a1a1a;
}

.last-check {
    font-size: 0.95em;
    color: #808080;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info {
    color: #505050;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.positive {
    color: #00ff00;
}

.negative {
    color: #ff0000;
}

.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.3s ease;
}

.section-header:hover {
    border-bottom-color: #404040;
}

.section-header h2 {
    margin: 0;
    text-align: left;
}

.toggle-icon {
    font-size: 1.2em;
    color: #808080;
    transition: transform 0.3s ease;
}

.section-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    padding-top: 30px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2px;
    background: #1a1a1a;
}

.breakdown-card {
    background: #000000;
    padding: 40px;
    transition: background 0.3s ease;
}

.breakdown-card:hover {
    background: #0a0a0a;
}

.breakdown-card h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    font-weight: 700;
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a1a;
}

.detail-row.highlight-row {
    border-bottom: 1px solid #303030;
}

.detail-row.metric-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #1a1a1a;
}

.metric-row .detail-label {
    color: #606060;
}

.metric-row .detail-value {
    color: #a0a0a0;
    font-size: 0.95em;
}

.detail-label {
    font-size: 0.9em;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.scenario-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.scenario-table thead {
    border-bottom: 2px solid #1a1a1a;
}

.scenario-table th {
    text-align: left;
    padding: 20px;
    font-size: 0.9em;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.scenario-table td {
    padding: 25px 20px;
    font-size: 1.1em;
    color: #ffffff;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 1px;
}

.scenario-table tbody tr {
    transition: background 0.3s ease;
}

.scenario-table tbody tr:hover {
    background: #0a0a0a;
}

.scenario-table tbody tr td:first-child {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scenario-table tbody tr td:last-child {
    font-weight: 700;
    font-size: 1.3em;
}

.scenario-bull td:last-child {
    color: #00ff00;
}

.scenario-base td:last-child {
    color: #ffffff;
}

.scenario-bear td:last-child {
    color: #ff8800;
}

.loading-text {
    text-align: center;
    color: #808080;
    padding: 40px;
    font-size: 0.95em;
    letter-spacing: 1px;
}

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

.clickable:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.calc-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #222222;
}

.calc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.calc-section h3 {
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
}

.calc-formula {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95em;
}

.calc-label {
    color: #808080;
    letter-spacing: 1px;
}

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

.calc-row.result {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #333333;
}

.calc-row.result .calc-label {
    color: #ffffff;
    font-weight: 500;
}

.calc-row.result .calc-value {
    color: #00ff00;
    font-size: 1.1em;
}

.calc-section.total {
    background-color: #0a0a0a;
    padding: 20px;
    border: 1px solid #333333;
    margin-bottom: 0;
}

.calc-row.total-row {
    font-size: 1.1em;
    padding: 5px 0;
}

.calc-row.total-row .calc-label {
    color: #ffffff;
    font-weight: 500;
}

.calc-row.total-row .calc-value {
    color: #00ff00;
    font-size: 1.2em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .calc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .calc-value {
        text-align: left;
    }

    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .spacex-logo {
        font-size: 2em;
        letter-spacing: 4px;
    }

    .stat-value,
    .company-value,
    .projection-value {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.6em;
        letter-spacing: 2px;
    }

    .valuation-grid,
    .projection-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .breakdown-card {
        padding: 25px;
    }

    .scenario-table th,
    .scenario-table td {
        padding: 15px 10px;
        font-size: 0.95em;
    }

    .scenario-table tbody tr td:last-child {
        font-size: 1.1em;
    }
}
