.page-index, .page-montagem {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.page-index {
    background-color: #f8f9fa;
    color: #1f2937;
}

.page-index .split-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #ffffff;
}

.page-index .side {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.page-index .side::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.page-index .side-left::before {
    background-image: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.page-index .side-right::before {
    background-image: linear-gradient(-135deg, #f0fdf4 0%, #dcfce7 100%);
}

.page-index .side-content {
    position: relative;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 500px;
}

.page-index .split-wrapper:hover .side {
    opacity: 0.85;
    filter: grayscale(0.3);
}

.page-index .split-wrapper .side:hover {
    flex: 1.25;
    opacity: 1;
    filter: grayscale(0);
}

.page-index .side:hover::before {
    transform: scale(1.05);
}

.page-index .side-left:hover::before {
    box-shadow: inset 0 0 100px rgba(34, 195, 69, 0.15);
    background-image: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #fef08a 100%);
}

.page-index .side-right:hover::before {
    box-shadow: inset 0 0 100px rgba(34, 195, 69, 0.15);
    background-image: linear-gradient(-135deg, #dcfce7 0%, #bbf7d0 50%, #fef08a 100%);
}

.page-index .side:hover .side-content {
    transform: scale(1.05);
}

.page-index .btn-custom {
    background-color: #22C345;
    color: #ffffff;
    border: 2px solid #22C345;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px -3px rgba(34, 195, 69, 0.3);
}

.page-index .side:hover .btn-custom {
    background-color: #1da63a;
    color: #ffffff;
    border-color: #1da63a;
    box-shadow: 0 12px 25px -5px rgba(34, 195, 69, 0.5);
    transform: translateY(-4px) scale(1.02);
}

.page-index .logo-container {
    position: absolute;
    top: clamp(1.2rem, 3vh, 3.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    background-color: transparent;
}

.page-index .logo-container img {
    height: clamp(80px, 12vh + 2vw, 180px);
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
    transition: height 0.4s ease, top 0.4s ease;
}

.page-montagem {
    background-color: #f3f4f6;
}

.pc-table th {
    border-bottom: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-weight: 600;
    color: #4b5563;
}

.pc-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    vertical-align: middle;
}

.btn-add {
    background-color: #22C345;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-add:hover {
    background-color: #1da63a;
}

.btn-choose {
    background-color: #22C345;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-choose:hover {
    background-color: #1da63a;
}

.page-autobuild {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

.game-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: 3px solid transparent;
    outline-offset: 2px;
}

.game-card:hover {
    transform: translateY(-8px);
    outline-color: #22C345;
}

.game-card.selected {
    transform: scale(1.02);
    outline-color: #22C345;
    outline-width: 4px;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(34, 195, 69, 0.4);
}

.game-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-green {
    color: #22C345;
}

/* RESPONSIVIDADE GERAL */
@media (max-width: 768px) {
    .page-index .split-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .page-index .logo-container {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        transform: none;
        background-color: transparent;
        z-index: 60;
    }

    .page-index .logo-container img {
        height: 55px;
        width: auto;
        max-width: 180px;
    }

    .page-index .side {
        padding: 2.5rem 1.5rem;
        flex: none;
        min-height: 50vh;
    }

    .page-index .side-left {
        padding-top: 5rem;
    }

    .page-index .side-content {
        transform: scale(0.95);
    }

    .game-card:hover {
        transform: translateY(-4px);
    }

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

    .pc-table thead {
        display: none;
    }

    .pc-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
    }

    .pc-table td {
        border: none;
        padding: 4px 8px;
    }

    #overview-tbody tr {
    padding: 16px 8px;
    }
    #overview-tbody td:nth-child(1) {
    width: 100%;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 4px;
    }
    #overview-tbody td:nth-child(2) {
    width: 100%;
    padding-bottom: 12px;
    }
    #overview-tbody td:nth-child(3) {
    width: 50%;
    text-align: left !important;
    font-size: 1.125rem;
    }
    #overview-tbody td:nth-child(4) {
    width: 50%;
    text-align: right !important;
    display: flex;
    justify-content: flex-end;
    }
    #overview-tbody td[colspan="3"] {
    width: 100%;
    text-align: left;
    padding-top: 8px;
    }
    #overview-tbody td[colspan="3"] button {
    width: 100%;
    justify-content: center;
    }

    .pc-table tfoot tr {
        flex-direction: column;
        background-color: #f9fafb;
        padding: 20px 10px;
        border-bottom: none;
    }
    .pc-table tfoot td {
        text-align: center !important;
        width: 100% !important;
        padding: 4px 0;
    }
    .pc-table tfoot td:nth-child(1) {
        font-size: 0.875rem;
    }
    .pc-table tfoot td:nth-child(2) {
        font-size: 1.5rem;
    }

    #selection-tbody tr {
    padding: 16px 8px;
    }
    #selection-tbody td:nth-child(1) {
    width: 25%;
    display: flex;
    justify-content: center;
    }
    #selection-tbody td:nth-child(2) {
    width: 75%;
    padding-left: 12px;
    }
    #selection-tbody td:nth-child(3) {
    width: 50%;
    text-align: left !important;
    padding-top: 16px;
    font-size: 1.125rem;
    }
    #selection-tbody td:nth-child(4) {
    width: 50%;
    text-align: right !important;
    padding-top: 16px;
    }
    #selection-tbody td:nth-child(4) button {
    width: auto;
    padding: 8px 24px;
    }
}

@media (max-width: 480px) {
    .page-index .logo-container {
        top: 1rem;
        left: 1rem;
    }

    .page-index .logo-container img {
        height: 45px;
    }

    .page-index .side {
        padding: 2rem 1rem;
    }

    .page-index .side-left {
        padding-top: 4.5rem;
    }

    .page-index .side-content {
        transform: scale(0.9);
    }
}
