#page {
    height: auto !important;
    min-height: 100% !important;
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
    color: #f7f7fb;
    background: radial-gradient(circle at top, rgba(26, 36, 64, 0.9), rgba(8, 11, 22, 0.95));
}

.dutching-app {
    overflow: hidden;
}

.dutching-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.dutching-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.dutching-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: rgba(247, 247, 251, 0.7);
}

.dutching-reset {
    background: linear-gradient(135deg, #ffb347, #ffcc33);
    border: none;
    color: #0b0f1f;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dutching-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(255, 204, 51, 0.3);
}

.dutching-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "inputs summary"
        "selections selections";
    gap: 1.5rem;
}

.dutching-panel--inputs {
    grid-area: inputs;
}

.dutching-panel--summary {
    grid-area: summary;
}

.dutching-panel--selections {
    grid-area: selections;
}

.dutching-panel {
    background: #12182e;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 204, 51, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.dutching-panel-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffdd78;
}

.dutching-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dutching-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(247, 247, 251, 0.75);
}

.dutching-input,
.dutching-inline-input input {
    border: 1px solid rgba(255, 204, 51, 0.35);
    background: rgba(11, 15, 31, 0.85);
    color: #ffdd78;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.dutching-input--error {
    border-color: rgba(255, 120, 120, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.25) !important;
}

.dutching-input:focus,
.dutching-inline-input input:focus {
    outline: none;
    border-color: rgba(255, 204, 51, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.25);
}

.dutching-inline-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dutching-inline-btn {
    background: rgba(255, 204, 51, 0.15);
    color: rgba(255, 204, 51, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.5rem;
    line-height: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dutching-inline-btn:hover {
    background: rgba(255, 204, 51, 0.35);
    transform: translateY(-1px);
}

.dutching-helper {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(247, 247, 251, 0.6);
}

.dutching-status {
    min-height: 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ff8c8c;
}

.dutching-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 51, 0.1);
}

.dutching-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    margin-top: 0px;
}

.dutching-table thead {
    background: rgba(255, 204, 51, 0.12);
}


.dutching-table th,
.dutching-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 204, 51, 0.08);
}

.dutching-table th {
    font-weight: 600;
    color: rgba(247, 247, 251, 0.8);
}

.dutching-row, .dutching-table th {
    background-color: #12182e;
}
.dutching-row:last-child td {
    border-bottom: none;
}

.dutching-odds-input {
    width: 100%;
}

.dutching-summary {
    margin: 0;
}

.dutching-summary-card {
    background: rgba(255, 204, 51, 0.12);
    border: 1px solid rgba(255, 204, 51, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
}

.dutching-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(247, 247, 251, 0.7);
}

.dutching-summary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffdd78;
}

.dutching-summary-value.dutching-positive {
    color: #8ff6c7;
}

.dutching-summary-value.dutching-negative {
    color: #ff9a9a;
}

@media (max-width: 900px) {
    .dutching-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "inputs"
            "summary"
            "selections";
    }
}

@media (max-width: 600px) {
    .dutching-title {
        font-size: 1.6rem;
    }

    .dutching-table {
        min-width: 100%;
    }

    .dutching-table thead {
        display: none;
    }

    .dutching-table tbody,
    .dutching-table tr,
    .dutching-table th,
    .dutching-table td {
        display: block;
        width: 100%;
    }

    .dutching-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 204, 51, 0.15);
        border-radius: 12px;
        overflow: hidden;
    }

    .dutching-table th {
        padding: 0.75rem 0.9rem;
        border-bottom: 1px solid rgba(255, 204, 51, 0.08);
        font-weight: 600;
    }

    .dutching-table td {
        padding: 0.65rem 0.9rem;
        border-bottom: 1px solid rgba(255, 204, 51, 0.08);
        position: relative;
        text-align: left;
    }

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

    .dutching-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: rgba(247, 247, 251, 0.6);
        margin-bottom: 0.25rem;
    }

    .dutching-odds-input {
        width: 100%;
    }

    .dutching-panel {
        padding: 1.25rem;
    }

    .dutching-panel-title {
        font-size: 0.95rem;
    }

}
