:root {
    --primary-color: #8A4FFF;
    --primary-dark: #6a3acb;
    --text-color: #1a1a1a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gray: #e0e0e0;
    --shadow: 0 0.26vw 0.391vw rgba(0, 0, 0, 0.1);
}

.profile-layout {
    display: grid;
    grid-template-columns: 18.229vw auto;
    gap: 2.604vw;
    padding: 3.906vw 1.302vw;
    align-items: start;
}

.profile-sidebar {
    background: var(--white);
    padding: 2.084vw 0;
    border-radius: 0.781vw;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-avatar {
    padding: 0 1.563vw 1.563vw 1.563vw;
    border-bottom: 0.065vw solid var(--gray);
}

.profile-avatar .material-symbols-outlined {
    font-size: 5.209vw;
    color: var(--primary-color);
}

.profile-avatar h3 {
    margin-top: 0.651vw;
    font-size: 1.25vw;
}

.profile-avatar p {
    color: #777;
    font-size: 0.938vw;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    margin-top: 1.041vw;
}



.profile-nav a {
    display: flex;
    align-items: center;
    gap: 0.781vw;
    padding: 0.781vw 1.563vw;
    transition: all 0.3s;
    font-weight: 500;
}

.profile-nav a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-left: 0.26vw solid var(--primary-color);
}

.profile-nav a:hover:not(.active) {
    background-color: #f0f0f0;
}

.profile-nav .logout {
    color: #e60012;
    margin-top: 2.084vw;
}

.content-card {
    background: var(--white);
    padding: 2.604vw;
    border-radius: 0.781vw;
    box-shadow: var(--shadow);
}

.card-header {
    margin-bottom: 2.084vw;
    border-bottom: 0.13vw solid var(--primary-color);
    padding-bottom: 0.834vw;
}

.card-header h3 {
    margin-bottom: 0;
}

.profile-form {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1.563vw;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.521vw;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    font-size: 0.938vw;
    color: #555;
}

.profile-form input {
    padding: 0.781vw;
    border: 0.065vw solid var(--gray);
    border-radius: 0.391vw;
    font-family: inherit;
    transition: all 0.3s;
}

.profile-form input:disabled {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-color);
    padding-left: 0;
    font-weight: 500;
    cursor: default;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.976vw;
    margin-top: 1.302vw;
    width: 100%;
}

#initial-actions,
#edit-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.976vw;
}

.btn-primary-profile {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.911vw;
    border-radius: 0.391vw;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary-profile:hover {
    background-color: var(--primary-dark);
}

.btn-text-only {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.99vw;
    cursor: pointer;
    padding: 0.325vw 0.651vw;
    transition: opacity 0.3s;
}

.btn-text-only:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.orders-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw;
}

.order-card {
    border: 1px solid var(--gray);
    border-radius: 0.8vw;
    padding: 1.5vw;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1vw;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1vw;
}

.order-id {
    font-weight: 700;
    font-size: 1.1vw;
    color: var(--text-color);
}

.order-status {
    padding: 0.3vw 0.8vw;
    border-radius: 20px;
    font-size: 0.85vw;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background-color: #e6fcf5;
    color: #0ca678;
}

.status-pending {
    background-color: #fff4e6;
    color: #f76707;
}

.order-products {
    margin-bottom: 1.5vw;
}

.order-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95vw;
    color: #555;
    padding: 0.4vw 0;
}

.flex-align-center {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.material-symbols-outlined {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-small {
    font-size: 1.3vw !important;
}

.icon-xsmall {
    font-size: 1.1vw !important;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1vw;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9vw;
    color: #777;
}

.order-total {
    font-weight: 800;
    font-size: 1.2vw;
    color: var(--primary-color);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;
    margin-top: 2vw;
    padding-top: 1.5vw;
    border-top: 1px solid #f0f0f0;
}

.pagination-container button {
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-weight: 700;
    font-size: 0.9vw;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-container button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-container button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    width: 40vw;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.2vw 1.5vw;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2vw;
}

.close-modal {
    cursor: pointer;
    font-size: 1.5vw !important;
}

.modal-body {
    padding: 1.5vw;
    overflow-y: auto;
}

.modal-item {
    display: flex;
    gap: 1vw;
    padding: 1vw;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-radius: 8px;
}

.modal-item:hover {
    background-color: #f8f9fa;
}

.modal-item:last-child {
    border-bottom: none;
}

.modal-item img {
    width: 4vw;
    height: 5.5vw;
    object-fit: cover;
    border-radius: 4px;
}

.modal-item-info h4 {
    margin: 0;
    font-size: 1vw;
}

.modal-item-info p {
    margin: 0.2vw 0;
    font-size: 0.85vw;
    color: #666;
}

.btn-view-products {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1vw;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3vw;
    margin-left: 0.5vw;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10vw, 1fr));
    gap: 1.2vw;
    margin-top: 1vw;
}

.favorites-grid .game-card {
    height: auto;
}

.favorites-grid .game-card .card-image {
    height: 13vw;
}

.favorites-grid .game-card .card-image img {
    height: 100%;
}

#favorites-list {
    margin-top: 1vw;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5vw;
}

.card-title-row h4 {
    margin: 0;
    font-size: 1vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.favorites-grid .favorite-btn {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
    cursor: pointer;
    color: #ef4444;
}

.favorites-grid .favorite-btn .material-symbols-outlined {
    font-size: 1.3vw !important;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.favorites-grid .favorite-btn:hover {
    transform: scale(1.1);
}

