* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #374151 100%);
    color: #e5e7eb;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(180, 150, 50, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(180, 150, 50, 0.3));
}

.title {
    font-size: 3rem;
    font-weight: bold;
    color: #b49632;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
    opacity: 0.9;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
}

.config-panel {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(180, 150, 50, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.config-panel h2 {
    color: #b49632;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.results-selector {
    margin-bottom: 25px;
}

.results-selector label {
    display: block;
    margin-bottom: 10px;
    color: #9ca3af;
    font-weight: bold;
}

.number-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.num-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    background: rgba(180, 150, 50, 0.1);
    color: #b49632;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.num-btn:hover {
    background: rgba(180, 150, 50, 0.2);
    transform: translateY(-2px);
}

.num-btn.active {
    background: rgba(180, 150, 50, 0.3);
    color: #fff;
}

.round-toggle {
    margin-bottom: 20px;
}

.round-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #9ca3af;
    font-weight: bold;
}

.round-toggle input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: rgba(180, 150, 50, 0.1);
    transition: all 0.3s ease;
}

.round-toggle input[type="checkbox"]:checked + .checkmark {
    background: rgba(180, 150, 50, 0.3);
}

.round-toggle input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b49632;
    font-weight: bold;
    font-size: 14px;
}

.investment-input {
    margin-top: 20px;
}

.investment-input label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-weight: bold;
}

.investment-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 8px;
    background: rgba(180, 150, 50, 0.1);
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.investment-input input:focus {
    outline: none;
    border-color: #b49632;
    background: rgba(180, 150, 50, 0.2);
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.odds-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(180, 150, 50, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.odds-card:hover {
    transform: translateY(-5px);
}

.odds-card h3 {
    color: #b49632;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #9ca3af;
    font-weight: bold;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 8px;
    background: rgba(180, 150, 50, 0.1);
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #b49632;
    background: rgba(180, 150, 50, 0.2);
}

.lay-stake-group {
    margin-bottom: 15px;
}

.lay-stake-group label {
    display: block;
    margin-bottom: 5px;
    color: #9ca3af;
    font-weight: bold;
    font-size: 0.9rem;
}

.lay-stake-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 8px;
    background: rgba(180, 150, 50, 0.1);
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lay-stake-group input:focus {
    outline: none;
    border-color: #b49632;
    background: rgba(180, 150, 50, 0.2);
}

.commission-input-group {
    margin-bottom: 15px;
}

.commission-input-group label {
    display: block;
    margin-bottom: 5px;
    color: #9ca3af;
    font-weight: bold;
    font-size: 0.9rem;
}

.commission-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 8px;
    background: rgba(180, 150, 50, 0.1);
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.commission-input-group input:focus {
    outline: none;
    border-color: #b49632;
    background: rgba(180, 150, 50, 0.2);
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #9ca3af;
    font-weight: bold;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group .checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(180, 150, 50, 0.5);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: rgba(180, 150, 50, 0.1);
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkmark {
    background: rgba(180, 150, 50, 0.3);
}

.checkbox-group input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b49632;
    font-weight: bold;
    font-size: 12px;
}

.stake-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(180, 150, 50, 0.8) 0%, rgba(148, 103, 25, 0.8) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.stake-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(180, 150, 50, 0.3);
}

.results-section {
    grid-column: 1 / -1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-header h2 {
    color: #b49632;
    font-size: 2rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.reset-btn,
.distribute-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.distribute-btn {
    background: linear-gradient(135deg, rgba(180, 150, 50, 0.8) 0%, rgba(148, 103, 25, 0.8) 100%);
    color: #fff;
}

.reset-btn {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8) 0%, rgba(55, 65, 81, 0.8) 100%);
    color: #e5e7eb;
}

.reset-btn:hover,
.distribute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.results-table {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(180, 150, 50, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px 120px;
    gap: 1px;
    background: rgba(180, 150, 50, 0.3);
    padding: 15px;
    font-weight: bold;
    color: #b49632;
    text-align: center;
}

.table-body {
    background: rgba(31, 41, 55, 0.8);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px 120px 120px;
    gap: 1px;
    padding: 15px;
    border-bottom: 1px solid rgba(180, 150, 50, 0.2);
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.col-casa {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.casa-name {
    font-weight: bold;
    color: #b49632;
}

.casa-type {
    font-size: 0.85rem;
    color: #9ca3af;
}

.col-valor,
.col-percent,
.col-lucro,
.col-retorno {
    text-align: center;
    font-weight: bold;
}

.col-valor {
    color: #e5e7eb;
}

.col-percent {
    color: #9ca3af;
}

.col-lucro {
    color: #10b981;
}

.col-retorno {
    color: #b49632;
}

.summary-section {
    display: flex;
    justify-content: center;
}

.summary-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(180, 150, 50, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 400px;
}

.summary-card h3 {
    color: #b49632;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(180, 150, 50, 0.2);
    font-size: 1.1rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: #9ca3af;
    font-weight: bold;
}

.summary-item span:last-child {
    color: #b49632;
    font-weight: bold;
}

.guaranteed-profit {
    color: #10b981 !important;
}

.footer {
    margin-top: 50px;
    padding: 40px 0;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(180, 150, 50, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-section {
    text-align: center;
    margin-bottom: 30px;
}

.social-section h3 {
    color: #b49632;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(180, 150, 50, 0.1);
    border: 1px solid rgba(180, 150, 50, 0.3);
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(180, 150, 50, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.twitter:hover {
    color: #1da1f2;
}

.social-link.instagram:hover {
    color: #e4405f;
}

.social-link.telegram:hover {
    color: #0088cc;
}

.footer-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .config-panel {
        order: 2;
    }
    
    .results-section {
        order: 3;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr 80px 80px 80px 80px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .odds-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .table-header div,
    .table-row div {
        padding: 5px 0;
    }
}

input,
select,
option {
    background-color: rgba(180, 150, 50, 0.1);
    color: #e5e7eb;
}

option {
    background-color: rgba(31, 41, 55, 0.95);
    color: #e5e7eb;
}
