.user-section {
    padding: 60px 0;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.auth-tabs {
    display: flex;
    background: var(--bg-light);
}

.auth-tab {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--primary-color);
    background: var(--bg-white);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.auth-form {
    display: none;
    padding: 30px;
}

.auth-form.active {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.user-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.user-email {
    font-size: 14px;
    color: var(--text-light);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.dashboard-nav .nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dashboard-nav .nav-item.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-nav .nav-item.logout {
    margin-top: 20px;
    color: var(--danger-color);
}

.dashboard-nav .nav-item.logout:hover {
    background: #ffebee;
}

.dashboard-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 500px;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header-flex h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.order-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 20px;
    background: var(--bg-light);
    font-size: 13px;
}

.order-header-item label {
    display: block;
    color: var(--text-light);
    margin-bottom: 3px;
}

.order-header-item span {
    font-weight: 600;
    color: var(--dark-color);
}

.order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3e0;
    color: #ef6c00;
}

.order-status.processing {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status.shipped {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.delivered {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.cancelled {
    background: #ffebee;
    color: #c62828;
}

.order-items {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.order-item-info .qty {
    font-size: 12px;
    color: var(--text-light);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.address-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.address-card.default {
    border-color: var(--primary-color);
}

.address-card .default-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.address-card h4 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.address-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.address-card .address-actions {
    display: flex;
    gap: 10px;
}

.address-card .address-actions button {
    padding: 6px 12px;
    font-size: 13px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wishlist-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.wishlist-item-image {
    height: 150px;
    overflow: hidden;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    padding: 15px;
}

.wishlist-item-info h4 {
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.wishlist-item-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item-actions button {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

.modal-lg {
    max-width: 700px;
}

@media (max-width: 1024px) {
    .user-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .user-info {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding-bottom: 0;
        padding-right: 20px;
        margin-bottom: 0;
    }

    .dashboard-nav {
        flex: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-nav .nav-item {
        flex: 1;
        min-width: 150px;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .order-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav .nav-item span {
        display: none;
    }

    .dashboard-nav .nav-item {
        justify-content: center;
        min-width: auto;
    }
}
