.calc-container {
    max-width: 940px;
    margin: 140px auto 80px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.calc-header {
    text-align: center;
    margin-bottom: 36px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.calc-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.input-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

.formula-panel,
.calc-note,
.search-panel,
.tips-panel,
.results-panel {
    border: 1px solid rgba(240, 165, 0, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.formula-panel {
    margin: 0 0 32px;
    padding: 22px 24px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
}

.formula-panel strong {
    display: block;
    color: var(--accent-yellow);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.results-section {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--border-light);
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.result-card,
.legend-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.result-card h4,
.legend-card h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.result-value {
    color: var(--accent-yellow);
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.result-unit,
.status-message,
.city-meta,
.conversion-box,
.calc-note,
.panel-text,
.featured-note {
    color: var(--text-secondary);
    line-height: 1.7;
}

.status-message {
    min-height: 28px;
    margin-top: 24px;
    text-align: center;
    font-weight: 700;
}

.status-message.is-warning {
    color: #fbbf24;
}

.status-message.is-error {
    color: #f87171;
}

.calc-note,
.conversion-box {
    margin-top: 24px;
    padding: 16px 18px;
}

.calc-button {
    width: 100%;
    margin-top: 24px;
    padding: 14px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: #0a0a0f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.result-card.active-card {
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 30px rgba(240, 165, 0, 0.12);
}

.ifov-top-bar {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px dashed var(--border-subtle);
    border-radius: 10px;
    text-align: center;
}

.vis-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow-x: auto;
}

.vis-camera svg {
    width: 56px;
    height: 56px;
}

#vis-cone {
    width: 300px;
    height: 130px;
    background: linear-gradient(90deg, rgba(240, 165, 0, 0.8), rgba(240, 165, 0, 0.25));
    clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
}

.vis-target-wrapper {
    width: 130px;
    height: 130px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

#vis-alvo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30%;
    min-height: 30%;
}

.search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 24px;
}

.search-panel,
.tips-panel,
.results-panel {
    padding: 24px;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-tag {
    padding: 8px 12px;
    border: 1px solid rgba(0, 206, 201, 0.18);
    border-radius: 999px;
    background: rgba(0, 206, 201, 0.08);
    color: #95f8f3;
    cursor: pointer;
    font-weight: 700;
}

.lookup-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font: inherit;
    margin-bottom: 18px;
}

.results-head,
.featured-result,
.result-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
}

.result-value-chip {
    color: #86efac;
    font-weight: 800;
}

@media (max-width: 768px) {
    .calc-container {
        margin: 100px 16px 40px;
        padding: 24px 16px;
    }

    .calc-grid,
    .calc-grid-three,
    .result-cards,
    .search-shell {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 2rem;
    }
}
