:root {
    --bg: #F0F2F5;
    --text: #1C1E21;
    --text-muted: #606770;
    --card-bg: #FFFFFF;
    --border: #DADDE1;
    --radius: 12px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--bg);
}

.full-width-image {
    width: 100%;
    max-width: 1500px;
    aspect-ratio: 30 / 10;
    overflow: hidden;
    background-color: #ddd;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-image {
    margin-top: 3rem;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    margin-bottom: 2.5rem;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.copyright {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

h2, h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.input-section h2 {
    margin-bottom: 2rem;
}

.grid-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fcfcfc;
    width: 100%;
    max-width: 250px;
}

.result-card.total {
    text-align: center;
    background-color: #fcfcfc;
}

.large-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.sub-values {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    padding: 1rem 0;
}

.sub-values.secondary {
    border-top: 1px dashed var(--border);
    color: #444;
}

.sub-values b {
    color: var(--text);
}

.split-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text-muted); }
td:last-child { text-align: right; font-weight: 700; }

.download-section {
    text-align: center;
    margin: 2.5rem 0;
}

.btn-primary {
    background-color: #1C1E21;
    color: #FFFFFF;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: #333639;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .sub-values { flex-direction: column; gap: 0.5rem; }
    .large-number { font-size: 2.5rem; }
}